package test05;

public class MyMain extends MyClass {
    public static void main(String[] args) {
        MyMain myMain = new MyMain();
        MyClass myClass = new MyClass();

        int a1 = myClass.a1;
        int a3 = myClass.a3;
        int a2 = myClass.getA2();

        myClass.m1();
        myClass.m3();

        //直接访问其他类的private会报错，可通过反射获得

    }
}
